package com.ruoyi.attend.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ruoyi.attend.utils.DateJsonDeserializer;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;
import java.util.Date;

/**
 * 签到
表 a_day_sign
 * 
 * @author wangxx
 * @date 2018-11-26
 */
@Data
public class DaySign extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 签到表id */
	private String signId;
	/** 签到次数 */
	private String signCount;
	/** 签到次数 */
	private String userId;
	/** 修改时间 */
	private Date updateTime;
	/** 签到时间 */
    @JsonDeserialize(using = DateJsonDeserializer.class)
	private Date signTime;
	//客户信息
	private DayUser dayUser;

	@Excel(name = "客户姓名")
	private String cardUserName;
	/** 操作人姓名 */
	@Excel(name = "课程顾问")
	private String loginName;
	/** 电话 */
	@Excel(name = "电话")
	private String phoneNumber;
	/** 客户卡号 */
	@Excel(name = "客户卡号")
	private String cardId;
	/** 课堂类型 */
	@Excel(name = "课堂类型")
	private String classType;

	@Excel(name = "办卡类型")
	private String cardStyle;


	public DayUser getDayUser() {
		return dayUser;
	}

	public void setDayUser(DayUser dayUser) {
		this.dayUser = dayUser;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setSignTime(Date signTime) 
	{
		this.signTime = signTime;
	}

	public Date getSignTime() 
	{
		return signTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("signCount", getSignCount())
            .append("updateTime", getUpdateTime())
            .append("signTime", getSignTime())
            .toString();
    }
}
